class PhotosController < ApplicationController
  #item 图片
  before_filter :find_item
  
  def index
    render :text => "商品图片"
    @photos = @item.pictures
  end

  def show
    render :text => "片图详情"
  end

  protected

  def find_item
    @item = Item.find(params[:item_id])
  end

end
